package com.leyantech.ecp.agenx.common.config;

/**
 * @author eahau, {@literal <eahau@foxmail.com>}
 * @date 2022-10-27.
 */
public final class MessageAddress {

  public static final String ALL = "all";

  public static final String CONNECTOR = "connector";

  public static final String ALL_CONNECTOR = toConnector(ALL);

  public static String toConnector(String sid, String aid) {
    return String.join(".", CONNECTOR, sid, aid);
  }

  public static String toConnector(String recipient) {
    return CONNECTOR + "." + recipient;
  }

}
